﻿using Microsoft.Practices.Unity;

namespace NMortgage.UI.ViewModels
{
    using System.Collections.Generic;

    public class MainViewModel : BaseViewModel
    {
        #region Constructors

        public MainViewModel(IUnityContainer container)
        {
            var loanProfileViewModel = container.Resolve<LoanProfileViewModel>();
            var simulationViewModel = new SimulationViewModel(loanProfileViewModel);
            container.BuildUp(simulationViewModel);
            Views = new List<BaseViewModel>
                        {
                            loanProfileViewModel,simulationViewModel
                        };
        }

        #endregion Constructors

        #region Properties

        public IEnumerable<BaseViewModel> Views
        {
            get; private set;
        }

        #endregion Properties
    }
}